import http from '@/plugins/axios'

/**
 * 获取续费业务列表
 * @param data 
 * @returns 
 */
export function getRenewYwList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManageTwo/getRenewYwList',
        data
    })
}

/**
 * 创建续费订单并且返回已支付及正在续费的订单
 * @param data 
 * @returns 
 */
export function createRenewOrder(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManageTwo/createRenewOrder',
        data
    })
}

/**
 * 根据批次ID获取收款记录
 * @param data 
 * @returns 
 */
export function getRenewShouList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManageTwo/getRenewShouList',
        data
    })
}

/**
 * 根据批次ID提交收款记录
 * @param data 
 * @returns 
 */
export function postSkList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManageTwo/postSkList',
        data
    })
}

/**
 * 根据批次ID获取退款记录
 * @param data 
 * @returns 
 */
export function getRenewTuiList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManageTwo/getRenewTuiList',
        data
    })
}

/**
 * 根据批次ID提交退款记录
 * @param data 
 * @returns 
 */
export function postTkList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManageTwo/postTkList',
        data
    })
}


/**
 * 保存已支付订单数据
 * @param data 
 * @returns 
 */
export function postSaveYzfOrder(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManageTwo/postSaveYzfOrder',
        data
    })
}

/**
 * 保存待续费订单数据
 * @param data 
 * @returns 
 */
export function postSaveDxfOrder(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManageTwo/postSaveDxfOrder',
        data
    })
}

/**
 * 提交续费
 * @param data 
 * @returns 
 */
export function postXf(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManageTwo/postXf',
        data
    })
}

/**
 * 获取历史续费数据
 * @param data 
 * @returns 
 */
export function getRenewHistoryData(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/renewManageTwo/getRenewHistoryData',
        data
    })
}